From: Eli Zaretskii Date: Sat, 7 Dec 2013 19:15:23 +0000 (+0200) Subject: Fixed a bug in get_long_basename which broke creation of new files. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~2035^2~13 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=4ba5c243d0c3e29ef2373247464fbf925def8164;p=emacs.git Fixed a bug in get_long_basename which broke creation of new files. --- diff --git a/src/w32.c b/src/w32.c index e2649167aee..7e32da84c58 100644 --- a/src/w32.c +++ b/src/w32.c @@ -2126,7 +2126,7 @@ get_long_basename (char * name, char * buf, int size) HANDLE dir_handle; char fname_utf8[MAX_UTF8_PATH]; int len = 0; - int cstatus; + int cstatus = -1; /* Must be valid filename, no wild cards or other invalid characters. */ if (strpbrk (name, "*?|<>\""))